package com.three.digit.algorithm;

import org.junit.Test;

import com.three.digit.ResourcesHanlder;
import com.three.digit.model.PercentHashSet;
import com.three.digit.model.Point;

public class BaseTable implements ResourcesHanlder
{
    @Test
    public void testSumTable ()
    {
        PercentHashSet <Integer> percentHashSet = new PercentHashSet <Integer> ();
        
        for (Point p : BASE_LIST)
        {
            percentHashSet.add (p.sum ());
        }
        
        percentHashSet.printAndSaveToFile ("sumTable");
    }
    
    @Test
    public void testSpanTable ()
    {
        PercentHashSet <Integer> percentHashSet = new PercentHashSet <Integer> ();
        
        for (Point p : BASE_LIST)
        {
            percentHashSet.add (p.span ());
        }
        
        percentHashSet.printAndSaveToFile ("spanTable");
    }
}
